import request from '@/utils/index'

// 获取首页轮播图banner列表
export const reqBannerAPI = (params={}) => {
    // 默认为1 商品为2
    const { distributionSite } = params
    return request({
        url: '/home/banner',
        method: 'get',
        params: {
            distributionSite
        }
    })
}

// 获取首页获取新鲜好物列表
export const reqFindNewAPI = () => {
    return request({
        url: '/home/new',
        method: 'get'
    })
}

//获取人气推荐商品列表
export const reqHotAPI = () => {
    return request({
        url: '/home/hot',
        method: 'get'
    })
}

// 获取所有分类商品列表
export const reqAllGoodsAPI = () => {
    return request({
        url: '/home/goods',
        method: 'get'
    })
}